import request from '@/utils/request'

// 查询项目-个人用户列表（不分页）
export function listProjectUser(query) {
  return request({
    url: '/business/projectUser/list',
    method: 'get',
    params: query
  })
}

// 查询项目-个人用户列表（分页）
export function pageListProjectUser(query) {
  return request({
    url: '/app-api/system/project-user/page',
    method: 'get',
    params: query
  })
}

// 新增项目-个人用户
export function addProjectUser(data) {
  return request({
    url: '/app-api/system/project-user/search-create',
    method: 'post',
    data: data
  })
}

// 删除项目-个人用户
export function delProjectUser(data) {
  return request({
    url: '/app-api/system/project-user/delete',
    method: 'delete',
    data: data
  })
}

export function updateUserProjectNotice(projectId, userIds) {
  return request({
    url: `/business/projectUser/notice/${projectId}/${userIds}`,
    method: 'put'
  })
}
